package com.hamilton.erik.pt.core.enumeration;

public enum EnclosureShape {
	
	RECTANGULAR_CUBE("Rectangular Cube"),
	RECTANGULAR_SQUARE("Rectangular Square"),
	CYLINDER("Cylinder"),
	BOWL("Bowl"),
	OTHER("Other");
	
	private String shape;
	
	private EnclosureShape(String shape) {
		this.shape = shape;
	}
	
	public String getShape() {
		return shape;
	}
	
	public static EnclosureShape fromValue(String value) {
		for(EnclosureShape shape : values()) {
			if(shape.getShape().equalsIgnoreCase(value)) {
				return shape;
			}
		}
		
		return null;
	}
	
	public String toString() {
		return shape;
	}
}
